package com.mavenq.fly.utils.excelv4.example;

/**
 * 测试产品实体类
 */
class Product {
    private String code;
    private String name;
    private Double price;
    private Integer stock;
    private String category;
    
    public Product() {}
    
    public Product(String code, String name, Double price, Integer stock, String category) {
        this.code = code;
        this.name = name;
        this.price = price;
        this.stock = stock;
        this.category = category;
    }
    
    // Getter和Setter
    public String getCode() { return code; }
    public void setCode(String code) { this.code = code; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public Double getPrice() { return price; }
    public void setPrice(Double price) { this.price = price; }
    public Integer getStock() { return stock; }
    public void setStock(Integer stock) { this.stock = stock; }
    public String getCategory() { return category; }
    public void setCategory(String category) { this.category = category; }
    
    @Override
    public String toString() {
        return String.format("Product{code='%s', name='%s', price=%.2f, stock=%d}", 
                           code, name, price, stock);
    }
}